<!DOCTYPE html>
<form>
    <input required oninvalid="parent.setInvalid();" />
    <input id="submit1" type="submit" />
</form>
